<template>
  <div id="app">
    <!--<div class="app-body">-->
      <router-view v-title= "$route.meta.title"/>
    <!--</div>-->
    <!--<van-tabbar v-model="active" :z-index="999" :fixed="false" v-show="$route.path!='/login/index'">-->
      <!--<van-tabbar-item to="/index/index" icon="home-o">调度</van-tabbar-item>-->
      <!--<van-tabbar-item to="/setting/index" icon="setting-o">设置</van-tabbar-item>-->
    <!--</van-tabbar>-->
  </div>
</template>
<script>
  // import { Tabbar, TabbarItem,Icon } from 'vant';

    import '@/assets/css/iconfont.css'
    export default {
      name: 'app',
      data(){
        return{
        }
      },
      created(){
        // if(!sessionStorage.token){
        //   this.$router.push({path:'/login/index'});
        // }
      },
      // computed:{
      //   active:function () {
      //     if(this.$route.path==='/index/index'){
      //       return 0
      //     }else{
      //       return 1
      //     }
      //   }
      // },
      components:{
        // [Tabbar.name]:Tabbar,
        // [TabbarItem.name]:TabbarItem,
        // [Icon.name]:Icon
      },
    }

</script>
<style lang="less">
  body,input{
    font-family: PingFangSC-Regular,"PingFang SC", "Microsoft YaHei","Songti SC", Tahoma, Arial, sans-serif;
  }
  #app{
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 40rem;
    margin: 0 auto;
    font-family: PingFangSC-Regular,"PingFang SC", "Microsoft YaHei","Songti SC", Tahoma, Arial, sans-serif;
    .app-body{
      flex:1
    }
  }
</style>
